package com.hlhj.funlike_business.activity.adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hlhj.funlike_business.R;
import com.hlhj.funlike_business.bean.FoodDetailBean;

import java.util.List;

public class SpecificationListAdp extends BaseQuickAdapter<FoodDetailBean.DataBean.AttrBean,BaseViewHolder>{
    public SpecificationListAdp(@Nullable List<FoodDetailBean.DataBean.AttrBean> data) {
        super(R.layout.adp_specification,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FoodDetailBean.DataBean.AttrBean item) {
        TextView itemName = helper.getView(R.id.tv_itenName);
        itemName.setText(item.getName());
    }
}
